-- configure: xmake f -c -p linux -a x86_64 -m debug -o builds/build [--cuda=PATH TO CUDA SDK]
-- configure example using NVHPC: xmake f -c -p linux -a x86_64 -m debug -o builds/build --cuda=/opt/nvidia/hpc_sdk/Linux_x86_64/22.11/cuda/11.8
-- configure toolchain-select: xmake f --toolchain=xxx [--sdk=/aaa/xxx(find the location of toolchain)]
-- build: xmake b -r -v -D
-- install: xmake install -o builds/install
-- run: xmake run GameLife
-- clean&uninstall: xmake clean && xmake uninstall

add_rules("mode.debug", "mode.release")
set_languages("c++17")
set_warnings("all")

-- add_requires("cuda")
add_requires("hwloc")
add_requires("readline")

target("LetMeJudge")
    set_kind("binary")
    add_files("tools/LetMeJudge.cpp")
    add_cugencodes("native")
    add_packages("hwloc", "readline")